import request from '@/utils/request'

// 查询授信信息列表
export function listDealBondCredit(query) {
  return request({
    url: '/credit/dealBondCredit/list',
    method: 'get',
    params: query
  })
}

// 查询授信信息详细
export function getDealBondCredit(id) {
  return request({
    url: '/credit/dealBondCredit/' + id,
    method: 'get'
  })
}

// 保存授信信息
export function saveDealBondCredit(data) {
  return request({
    url: '/credit/dealBondCredit/save',
    method: 'post',
    data: data
  })
}

// 删除授信信息
export function delDealBondCredit(id) {
  return request({
    url: '/credit/dealBondCredit/' + id,
    method: 'delete'
  })
}

// 导出授信信息
export function exportDealBondCredit(query) {
  return request({
    url: '/credit/dealBondCredit/export',
    method: 'get',
    params: query
  })
}
